<template>
	<view class="content">
		<text class="success-icon yticon icon-xuanzhong2"></text>
		<text class="tit" v-if="type==''">支付成功</text>
		<text class="tit" v-if="type=='cz'">充值成功</text>
		<view class="btn-group" v-if="type==''">
			<navigator url="/pages/order/coachOrder?status=0" open-type="switchTab" class="mix-btn">查看订单</navigator>
			<navigator url="/pages/meallist/selectRoom" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
		</view>
		<view class="btn-group" v-if="type!=''">
			<navigator url="/pages/meallist/selectRoom" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
		</view>
	</view>
</template>

<script>
	import Api from '@/common/api';
	export default {
		data() {
			return {
				type: ''
			};
		},
		async onLoad(options) {
			if (typeof(options.type) != 'undefined') {
				this.type = options.type;
			}
		},
		methods: {}
	};
</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.success-icon {
		font-size: 160upx;
		color: #42af35;
		margin-top: 100upx;
	}

	.tit {
		font-size: 38upx;
		color: #303133;
	}

	.btn-group {
		padding-top: 100upx;
	}

	.mix-btn {
		margin-top: 30upx;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 600upx;
		height: 80upx;
		font-size: $font-lg;
		color: #fff;
		background-color: #e61a0f;
		border-radius: 10upx;

		&.hollow {
			background: #fff;
			color: #303133;
			border: 1px solid #ccc;
		}
	}
</style>
